package com.dc.project.entity.form;

import com.own.exception.BusinessSimpleException;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * CreateTaskForm
 *
 * @author chenxueli
 * @date 2025-03-08 15:16:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CreateTaskForm extends BaseCreateTaskForm implements Serializable {

    /**
     * 文件列表
     */
    private List<Long> fileIdList;

    @Override
    public void check() {
        super.check();
        if (fileIdList == null || fileIdList.isEmpty()) {
            throw new BusinessSimpleException("政策文件不能为空");
        }
    }

}
